﻿/**
 * 
 * Copyright 2009, 2010 Mike Jamer [email: mikejamer@gmail.com ]
 * 
 * This File is part of Moose IRC
 * 
 * MooseIRC is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * MooseIRC is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with MooseIRC.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace mooseirc.client.windowsforms {

    /// <summary>
    /// Child Form hosts a control suitable to the purpose,
    /// generally this will be a status or channel control.
    /// but I guess it could be alot of other things too...
    /// </summary>
    [CLSCompliant(true)]
    public abstract class ChildForm : Form {

        #region [Local Attributes]

        /// <summary>
        /// Control hosted in child form
        /// </summary>
        protected Control m_HostedControl;

        #endregion

        #region [Construction]

        /// <summary>
        /// Initialize Child Form
        /// </summary>
        public ChildForm(MainForm parent_form, Control control) : base() {
            MdiParent = parent_form;
            m_HostedControl = control;
            Controls.Add(m_HostedControl);
            m_HostedControl.Dock = DockStyle.Fill;

            BackColor = System.Drawing.Color.Black;
            ForeColor = System.Drawing.Color.LightGray;

            Font = new System.Drawing.Font("Fixedsys Excelsior", 12);

            Size = new System.Drawing.Size(800, 600);

            return;
        }

        #endregion

    }
}
